package club.beimeng.eduservice.entity.subject;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data /*一级分类*/
public class OneSubject {
    private String id;
    private String title;

    /*一个一级分类中包含多个二级分类*/
    private List<TwoSubject> children = new ArrayList<>();
}
/*
 *
 * @author Mr.Bao
 * @date 2021/7/25 9:36
 */